<?php
error_reporting(0);
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
date_default_timezone_set('Asia/Jakarta');
/*
$hostname_con_gl = "192.168.0.102";
$database_con_gl = "db_rental_dev";
$username_con_gl = "rental";
$password_con_gl = "RentaLMobiLApASajA";


Akses Root
$username_con_gl = "root";
$password_con_gl = "cpgtotojasa";
*/
$hostname_con_gl = "localhost";
$database_con_gl = "db_rental_dev";
$username_con_gl = "root";
$password_con_gl = "";

$con_gl = mysql_pconnect($hostname_con_gl, $username_con_gl, $password_con_gl) or trigger_error(mysql_error(),E_USER_ERROR); 

mysql_select_db($database_con_gl,$con_gl);
function simple_encrypt($str){
	$rts = strrev($str);
	return base64_encode($rts);
}

function simple_decrypt($str){
	$rts = base64_decode($str);
	return strrev($rts);
}
?>